<!DOCTYPE html>
<html lang="zh-cn" itemscope itemtype="http://schema.org/WebPage">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>匹配中国大陆手机号码的正则表达式 - 晨光的博客</title>
  

<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta name="MobileOptimized" content="width"/>
<meta name="HandheldFriendly" content="true"/>


<meta name="applicable-device" content="pc,mobile">

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">

<meta name="mobile-web-app-capable" content="yes">

<meta name="author" content="晨光" />
  <meta name="description" content="^正则表达式 匹配所有号码（手机卡 &#43; 数据卡 &#43; 上网卡） [^(?:\&#43;?86)?1(?:3\d{3}|5[^4\D\]\d{2}|8\d{3}|7[^29\D](?(?&amp;lt;=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|6[567]\d{2}|4(?:[14]0\d{3}|[68]\d{4}|[579]\d{2}))\d{6}$](https://www.debuggex.com/r/tLZQT3k0DZqmnP8o) 匹配所有支持短信功能的号码（手机卡 &#43; 上网卡） [^(?:\&#43;?86)?1(?:3\d{3}|5[^4\D\]\d{2}|8\d{3}|7[^29\D](?(?&amp;lt;=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|6[567]\d{2}|4[579]\d{2})\d{6}$](https://www.debuggex.com/r/VbgdCcGSZcr9Kcgi) 手机卡 匹配所有 [^(?:\&#43;?86)?1(?:3\d{3}|5[^4\D\]\d{2}|8\d{3}|7[^0129\D](?(?&amp;lt;=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|66\d{2})\d{6}$](https://www.debuggex.com/r/YbIeQ_M4s88_9NHG) 匹配中国移动 [^(?:\&#43;?86)?1(?:3[^0-3\D](?(?&amp;lt;=4)[^9\D\]|\d)|5[^3-6\D]\d|8[23478]\d|(?:78|98)\d)\d{7}$](https://www.debuggex.com/r/_oGTPFpiqUNdaP8t) 匹配中国联通" />

  <meta name="keywords" content="李晨光, 晨光的博客, PHP技术分享, 李晨光的博客" />






<meta name="generator" content="Hugo 0.55.6" />


<link rel="canonical" href="https://lichenguang.net/post/%E5%8C%B9%E9%85%8D%E4%B8%AD%E5%9B%BD%E5%A4%A7%E9%99%86%E6%89%8B%E6%9C%BA%E5%8F%B7%E7%A0%81%E7%9A%84%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F/" />



<link rel="icon" href="/favicon.ico" />











<link rel="stylesheet" href="/sass/jane.min.57ebe9c198f36b136ba71149c7220932b765de3524fd1fa898395521ed819be1.css" integrity="sha256-V&#43;vpwZjzaxNrpxFJxyIJMrdl3jUk/R&#43;omDlVIe2Bm&#43;E=" media="screen" crossorigin="anonymous">





<meta property="og:title" content="匹配中国大陆手机号码的正则表达式" />
<meta property="og:description" content="^正则表达式 匹配所有号码（手机卡 &#43; 数据卡 &#43; 上网卡） [^(?:\&#43;?86)?1(?:3\d{3}|5[^4\D\]\d{2}|8\d{3}|7[^29\D](?(?&lt;=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|6[567]\d{2}|4(?:[14]0\d{3}|[68]\d{4}|[579]\d{2}))\d{6}$](https://www.debuggex.com/r/tLZQT3k0DZqmnP8o) 匹配所有支持短信功能的号码（手机卡 &#43; 上网卡） [^(?:\&#43;?86)?1(?:3\d{3}|5[^4\D\]\d{2}|8\d{3}|7[^29\D](?(?&lt;=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|6[567]\d{2}|4[579]\d{2})\d{6}$](https://www.debuggex.com/r/VbgdCcGSZcr9Kcgi) 手机卡 匹配所有 [^(?:\&#43;?86)?1(?:3\d{3}|5[^4\D\]\d{2}|8\d{3}|7[^0129\D](?(?&lt;=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|66\d{2})\d{6}$](https://www.debuggex.com/r/YbIeQ_M4s88_9NHG) 匹配中国移动 [^(?:\&#43;?86)?1(?:3[^0-3\D](?(?&lt;=4)[^9\D\]|\d)|5[^3-6\D]\d|8[23478]\d|(?:78|98)\d)\d{7}$](https://www.debuggex.com/r/_oGTPFpiqUNdaP8t) 匹配中国联通" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://lichenguang.net/post/%E5%8C%B9%E9%85%8D%E4%B8%AD%E5%9B%BD%E5%A4%A7%E9%99%86%E6%89%8B%E6%9C%BA%E5%8F%B7%E7%A0%81%E7%9A%84%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F/" />
<meta property="article:published_time" content="2019-09-01T13:38:21&#43;08:00"/>
<meta property="article:modified_time" content="2019-09-01T13:38:21&#43;08:00"/>

<meta itemprop="name" content="匹配中国大陆手机号码的正则表达式">
<meta itemprop="description" content="^正则表达式 匹配所有号码（手机卡 &#43; 数据卡 &#43; 上网卡） [^(?:\&#43;?86)?1(?:3\d{3}|5[^4\D\]\d{2}|8\d{3}|7[^29\D](?(?&lt;=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|6[567]\d{2}|4(?:[14]0\d{3}|[68]\d{4}|[579]\d{2}))\d{6}$](https://www.debuggex.com/r/tLZQT3k0DZqmnP8o) 匹配所有支持短信功能的号码（手机卡 &#43; 上网卡） [^(?:\&#43;?86)?1(?:3\d{3}|5[^4\D\]\d{2}|8\d{3}|7[^29\D](?(?&lt;=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|6[567]\d{2}|4[579]\d{2})\d{6}$](https://www.debuggex.com/r/VbgdCcGSZcr9Kcgi) 手机卡 匹配所有 [^(?:\&#43;?86)?1(?:3\d{3}|5[^4\D\]\d{2}|8\d{3}|7[^0129\D](?(?&lt;=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|66\d{2})\d{6}$](https://www.debuggex.com/r/YbIeQ_M4s88_9NHG) 匹配中国移动 [^(?:\&#43;?86)?1(?:3[^0-3\D](?(?&lt;=4)[^9\D\]|\d)|5[^3-6\D]\d|8[23478]\d|(?:78|98)\d)\d{7}$](https://www.debuggex.com/r/_oGTPFpiqUNdaP8t) 匹配中国联通">


<meta itemprop="datePublished" content="2019-09-01T13:38:21&#43;08:00" />
<meta itemprop="dateModified" content="2019-09-01T13:38:21&#43;08:00" />
<meta itemprop="wordCount" content="688">



<meta itemprop="keywords" content="手机号," />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="匹配中国大陆手机号码的正则表达式"/>
<meta name="twitter:description" content="^正则表达式 匹配所有号码（手机卡 &#43; 数据卡 &#43; 上网卡） [^(?:\&#43;?86)?1(?:3\d{3}|5[^4\D\]\d{2}|8\d{3}|7[^29\D](?(?&lt;=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|6[567]\d{2}|4(?:[14]0\d{3}|[68]\d{4}|[579]\d{2}))\d{6}$](https://www.debuggex.com/r/tLZQT3k0DZqmnP8o) 匹配所有支持短信功能的号码（手机卡 &#43; 上网卡） [^(?:\&#43;?86)?1(?:3\d{3}|5[^4\D\]\d{2}|8\d{3}|7[^29\D](?(?&lt;=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|6[567]\d{2}|4[579]\d{2})\d{6}$](https://www.debuggex.com/r/VbgdCcGSZcr9Kcgi) 手机卡 匹配所有 [^(?:\&#43;?86)?1(?:3\d{3}|5[^4\D\]\d{2}|8\d{3}|7[^0129\D](?(?&lt;=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|66\d{2})\d{6}$](https://www.debuggex.com/r/YbIeQ_M4s88_9NHG) 匹配中国移动 [^(?:\&#43;?86)?1(?:3[^0-3\D](?(?&lt;=4)[^9\D\]|\d)|5[^3-6\D]\d|8[23478]\d|(?:78|98)\d)\d{7}$](https://www.debuggex.com/r/_oGTPFpiqUNdaP8t) 匹配中国联通"/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->




</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/" class="logo">晨光的博客</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <li class="mobile-menu-item">
        
          
          
            <a class="menu-item-link" href="https://lichenguang.net/">首页</a>
          
        
      </li><li class="mobile-menu-item">
        
          
          
            <a class="menu-item-link" href="https://lichenguang.net/post/">文章</a>
          
        
      </li><li class="mobile-menu-item">
        
          
          
            <a class="menu-item-link" href="https://lichenguang.net/tags/">标签</a>
          
        
      </li><li class="mobile-menu-item">
        
          
          
            <a class="menu-item-link" href="https://lichenguang.net/categories/">分类</a>
          
        
      </li><li class="mobile-menu-item">
        
          
          
            <a class="menu-item-link" href="https://lichenguang.net/%E8%81%94%E7%B3%BB%E6%88%91/index.html">联系我</a>
          
        
      </li>
    

    
  </ul>
</nav>


  
    






  <link rel="stylesheet" href="/lib/photoswipe/photoswipe.min.css" />
  <link rel="stylesheet" href="/lib/photoswipe/default-skin/default-skin.min.css" />




<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

<div class="pswp__bg"></div>

<div class="pswp__scroll-wrap">
    
    <div class="pswp__container">
      <div class="pswp__item"></div>
      <div class="pswp__item"></div>
      <div class="pswp__item"></div>
    </div>
    
    <div class="pswp__ui pswp__ui--hidden">
    <div class="pswp__top-bar">
      
      <div class="pswp__counter"></div>
      <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
      <button class="pswp__button pswp__button--share" title="Share"></button>
      <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
      <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
      
      
      <div class="pswp__preloader">
        <div class="pswp__preloader__icn">
          <div class="pswp__preloader__cut">
            <div class="pswp__preloader__donut"></div>
          </div>
        </div>
      </div>
    </div>
    <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
      <div class="pswp__share-tooltip"></div>
    </div>
    <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
    </button>
    <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
    </button>
    <div class="pswp__caption">
      <div class="pswp__caption__center"></div>
    </div>
    </div>
    </div>
</div>

  

  

  

  <header id="header" class="header container">
    <div class="logo-wrapper">
  <a href="/" class="logo">
    
      晨光的博客
    
  </a>
</div>

<nav class="site-navbar">
  <ul id="menu" class="menu">
    
    
        <li class="menu-item">
        
          
          
            <a class="menu-item-link" href="https://lichenguang.net/">首页</a>
          

        

      </li>
    
        <li class="menu-item">
        
          
          
            <a class="menu-item-link" href="https://lichenguang.net/post/">文章</a>
          

        

      </li>
    
        <li class="menu-item">
        
          
          
            <a class="menu-item-link" href="https://lichenguang.net/tags/">标签</a>
          

        

      </li>
    
        <li class="menu-item">
        
          
          
            <a class="menu-item-link" href="https://lichenguang.net/categories/">分类</a>
          

        

      </li>
    
        <li class="menu-item">
        
          
          
            <a class="menu-item-link" href="https://lichenguang.net/%E8%81%94%E7%B3%BB%E6%88%91/index.html">联系我</a>
          

        

      </li>
    

    
    

    
  </ul>
</nav>

  </header>

  <div id="mobile-panel">
    <main id="main" class="main bg-llight">
      <div class="content-wrapper">
        <div id="content" class="content container">
          <article class="post bg-white">
    
    <header class="post-header">
      <h1 class="post-title">匹配中国大陆手机号码的正则表达式</h1>
      
      <div class="post-meta">
        <time datetime="2019-09-01" class="post-time">
          2019-09-01
        </time>
        <div class="post-category">
            <a href="https://lichenguang.net/categories/%E4%BB%A3%E7%A0%81%E8%AE%B0%E5%BD%95/"> 代码记录 </a>
            
          </div>
        <span class="more-meta"> 约 688 字 </span>
          <span class="more-meta"> 预计阅读 2 分钟 </span>

        
        

        
        
      </div>
    </header>

    
    
<div class="post-toc" id="post-toc">
  <h2 class="post-toc-title">文章目录</h2>
  <div class="post-toc-content">
    <nav id="TableOfContents">
<ul>
<li>
<ul>
<li>
<ul>
<li><a href="#匹配所有号码-手机卡-数据卡-上网卡">匹配所有号码（手机卡 + 数据卡 + 上网卡）</a></li>
<li><a href="#匹配所有支持短信功能的号码-手机卡-上网卡">匹配所有支持短信功能的号码（手机卡 + 上网卡）</a></li>
<li><a href="#手机卡">手机卡</a>
<ul>
<li><a href="#匹配所有">匹配所有</a></li>
<li><a href="#匹配中国移动">匹配中国移动</a></li>
<li><a href="#匹配中国联通">匹配中国联通</a></li>
<li><a href="#匹配中国电信">匹配中国电信</a></li>
<li><a href="#匹配北京船舶通信导航有限公司-海事卫星通信">匹配北京船舶通信导航有限公司（海事卫星通信）</a></li>
<li><a href="#工业和信息化部应急通信保障中心-应急通信">工业和信息化部应急通信保障中心（应急通信）</a></li>
</ul></li>
<li><a href="#虚拟运营商">虚拟运营商</a>
<ul>
<li><a href="#匹配所有-1">匹配所有</a></li>
<li><a href="#匹配中国移动-1">匹配中国移动</a></li>
<li><a href="#匹配中国联通-1">匹配中国联通</a></li>
<li><a href="#匹配中国电信-1">匹配中国电信</a></li>
</ul></li>
<li><a href="#物联网数据卡">物联网数据卡</a>
<ul>
<li><a href="#匹配所有-2">匹配所有</a></li>
<li><a href="#匹配中国移动-2">匹配中国移动</a></li>
<li><a href="#匹配中国联通-2">匹配中国联通</a></li>
<li><a href="#匹配中国电信-2">匹配中国电信</a></li>
</ul></li>
<li><a href="#上网卡">上网卡</a>
<ul>
<li><a href="#匹配所有-3">匹配所有</a></li>
<li><a href="#匹配中国移动-3">匹配中国移动</a></li>
<li><a href="#匹配中国联通-3">匹配中国联通</a></li>
<li><a href="#匹配中国电信-3">匹配中国电信</a></li>
</ul></li>
</ul></li>
<li><a href="#在线测试-调试">在线测试/调试</a></li>
<li><a href="#规则">规则</a>
<ul>
<li>
<ul>
<li><a href="#手机卡-基础运营商">手机卡 - 基础运营商</a></li>
<li><a href="#手机卡-虚拟运营商">手机卡 - 虚拟运营商</a></li>
<li><a href="#物联网数据卡-1">物联网数据卡</a></li>
<li><a href="#上网卡-1">上网卡</a></li>
</ul></li>
</ul></li>
</ul></li>
</ul>
</nav>
  </div>
</div>

    
    <div class="post-content">
      

<p>^正则表达式</p>

<h3 id="匹配所有号码-手机卡-数据卡-上网卡">匹配所有号码（手机卡 + 数据卡 + 上网卡）</h3>

<p>[<code>^(?:\+?86)?1(?:3\d{3}|5[^4\D\]\d{2}|8\d{3}|7[^29\D](?(?&lt;=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|6[567]\d{2}|4(?:[14]0\d{3}|[68]\d{4}|[579]\d{2}))\d{6}$</code>](<a href="https://www.debuggex.com/r/tLZQT3k0DZqmnP8o">https://www.debuggex.com/r/tLZQT3k0DZqmnP8o</a>)</p>

<h3 id="匹配所有支持短信功能的号码-手机卡-上网卡">匹配所有支持短信功能的号码（手机卡 + 上网卡）</h3>

<p>[<code>^(?:\+?86)?1(?:3\d{3}|5[^4\D\]\d{2}|8\d{3}|7[^29\D](?(?&lt;=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|6[567]\d{2}|4[579]\d{2})\d{6}$</code>](<a href="https://www.debuggex.com/r/VbgdCcGSZcr9Kcgi">https://www.debuggex.com/r/VbgdCcGSZcr9Kcgi</a>)</p>

<h3 id="手机卡">手机卡</h3>

<h4 id="匹配所有">匹配所有</h4>

<p>[<code>^(?:\+?86)?1(?:3\d{3}|5[^4\D\]\d{2}|8\d{3}|7[^0129\D](?(?&lt;=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|66\d{2})\d{6}$</code>](<a href="https://www.debuggex.com/r/YbIeQ_M4s88_9NHG">https://www.debuggex.com/r/YbIeQ_M4s88_9NHG</a>)</p>

<h4 id="匹配中国移动">匹配中国移动</h4>

<p>[<code>^(?:\+?86)?1(?:3[^0-3\D](?(?&lt;=4)[^9\D\]|\d)|5[^3-6\D]\d|8[23478]\d|(?:78|98)\d)\d{7}$</code>](<a href="https://www.debuggex.com/r/_oGTPFpiqUNdaP8t">https://www.debuggex.com/r/_oGTPFpiqUNdaP8t</a>)</p>

<h4 id="匹配中国联通">匹配中国联通</h4>

<p>[<code>^(?:\+?86)?1(?:3[0-2\]|[578][56]|66)\d{8}$</code>](<a href="https://www.debuggex.com/r/n8onnyBbDV-hN7mU">https://www.debuggex.com/r/n8onnyBbDV-hN7mU</a>)</p>

<h4 id="匹配中国电信">匹配中国电信</h4>

<p>[<code>^(?:\+?86)?1(?:3[34](?(?&lt;=4)(?:9)|\d)\d|53\d{2}|8[019\]\d{2}|7[347](?(?&lt;=4)(?:0[0-5])|\d{2})|9[19]\d{2})\d{6}$</code>](<a href="https://www.debuggex.com/r/r3m8n91BeWXfncGO">https://www.debuggex.com/r/r3m8n91BeWXfncGO</a>)</p>

<h4 id="匹配北京船舶通信导航有限公司-海事卫星通信">匹配北京船舶通信导航有限公司（海事卫星通信）</h4>

<p><a href="https://www.debuggex.com/r/Ewdta8YJfreoXguf"><code>^(?:\+?86)?1749\d{7}$</code></a></p>

<h4 id="工业和信息化部应急通信保障中心-应急通信">工业和信息化部应急通信保障中心（应急通信）</h4>

<p>[<code>^(?:\+?86)?174(?:0[6-9\]|1[0-2])\d{6}$</code>](<a href="https://www.debuggex.com/r/ueZ3m3NQr400LWmF">https://www.debuggex.com/r/ueZ3m3NQr400LWmF</a>)</p>

<h3 id="虚拟运营商">虚拟运营商</h3>

<h4 id="匹配所有-1">匹配所有</h4>

<p>[<code>^(?:\+?86)?1(?:7[01\]|6[57])\d{8}$</code>](<a href="https://www.debuggex.com/r/wtY28Kvn-Ksu-Dcv">https://www.debuggex.com/r/wtY28Kvn-Ksu-Dcv</a>)</p>

<h4 id="匹配中国移动-1">匹配中国移动</h4>

<p>[<code>^(?:\+?86)?1(?:65\d|70[356\])\d{7}$</code>](<a href="https://www.debuggex.com/r/eXKVlO3E5W9wn5RJ">https://www.debuggex.com/r/eXKVlO3E5W9wn5RJ</a>)</p>

<h4 id="匹配中国联通-1">匹配中国联通</h4>

<p>[<code>^(?:\+?86)?1(?:70[4789\]|71\d|67\d)\d{7}$</code>](<a href="https://www.debuggex.com/r/bKyapelcUxT0KZXb">https://www.debuggex.com/r/bKyapelcUxT0KZXb</a>)</p>

<h4 id="匹配中国电信-1">匹配中国电信</h4>

<p>[<code>^(?:\+?86)?170[0-2\]\d{7}$</code>](<a href="https://www.debuggex.com/r/kIhclgXmlEF57w2r">https://www.debuggex.com/r/kIhclgXmlEF57w2r</a>)</p>

<h3 id="物联网数据卡">物联网数据卡</h3>

<h4 id="匹配所有-2">匹配所有</h4>

<p>[<code>^(?:\+?86)?14(?:[14\]0|[68]\d)\d{9}$</code>](<a href="https://www.debuggex.com/r/95embzRGAR76zPIV">https://www.debuggex.com/r/95embzRGAR76zPIV</a>)</p>

<h4 id="匹配中国移动-2">匹配中国移动</h4>

<p><a href="https://www.debuggex.com/r/lVn_7eMXVOEiXXK_"><code>^(?:\+?86)?14(?:40|8\d)\d{9}$</code></a></p>

<h4 id="匹配中国联通-2">匹配中国联通</h4>

<p><a href="https://www.debuggex.com/r/esYULNSOSyXxoACe"><code>^(?:\+?86)?146\d{10}$</code></a></p>

<h4 id="匹配中国电信-2">匹配中国电信</h4>

<p><a href="https://www.debuggex.com/r/9g8nJMl_hWpaGLTi"><code>^(?:\+?86)?1410\d{9}$</code></a></p>

<h3 id="上网卡">上网卡</h3>

<h4 id="匹配所有-3">匹配所有</h4>

<p>[<code>^(?:\+?86)?14[579\]\d{8}$</code>](<a href="https://www.debuggex.com/r/IHFTe5Z099QxCyvb">https://www.debuggex.com/r/IHFTe5Z099QxCyvb</a>)</p>

<h4 id="匹配中国移动-3">匹配中国移动</h4>

<p><a href="https://www.debuggex.com/r/zu-yH27vlHT3oSJ7"><code>^(?:\+?86)?147\d{8}$</code></a></p>

<h4 id="匹配中国联通-3">匹配中国联通</h4>

<p><a href="https://www.debuggex.com/r/4YLUXlvZD6VcvPtQ"><code>^(?:\+?86)?145\d{8}$</code></a></p>

<h4 id="匹配中国电信-3">匹配中国电信</h4>

<p><a href="https://www.debuggex.com/r/uzvr1c395PsqG-K6"><code>^(?:\+?86)?149\d{8}$</code></a></p>

<h2 id="在线测试-调试">在线测试/调试</h2>

<p><a href="https://regex101.com/">https://regex101.com</a>
<a href="https://regexr.com/">https://regexr.com</a>
<a href="https://www.debuggex.com/">https://www.debuggex.com</a>（PCRE 在线视觉化）</p>

<h2 id="规则">规则</h2>

<h4 id="手机卡-基础运营商">手机卡 - 基础运营商</h4>

<ul>
<li>支持语音通话 / 短信 / 数据流量</li>
<li>号码长度 11 位</li>
</ul>

<table>
<thead>
<tr>
<th align="left">运营商[1]</th>
<th align="left">号段</th>
</tr>
</thead>

<tbody>
<tr>
<td align="left">中国移动</td>
<td align="left">134-0~8 / 135 / 136 / 137 / 138 / 139 / 150 / 151 / 152 / 157 / 158 / 159 / 178 / 182 / 183 / 184 / 187 / 188 / 198</td>
</tr>

<tr>
<td align="left">中国联通</td>
<td align="left">130 / 131 / 132 / 155 / 156 / 166 / 175 / 176 / 185 / 186</td>
</tr>

<tr>
<td align="left">中国电信</td>
<td align="left">133 / 134-9 / 153 / 173 / 174-00~05 / 177 / 180 / 181 / 189 / 191 / 199</td>
</tr>

<tr>
<td align="left">北京船舶通信导航有限公司（海事卫星通信）</td>
<td align="left">174-9</td>
</tr>

<tr>
<td align="left">工业和信息化部应急通信保障中心（应急通信）</td>
<td align="left">174-06~12</td>
</tr>
</tbody>
</table>

<h4 id="手机卡-虚拟运营商">手机卡 - 虚拟运营商</h4>

<ul>
<li>支持语音通话 / 短信 / 数据流量</li>
<li>号码长度 11 位</li>
</ul>

<table>
<thead>
<tr>
<th align="left">运营商[1]</th>
<th align="left">号段</th>
</tr>
</thead>

<tbody>
<tr>
<td align="left">中国移动</td>
<td align="left">165 / 1703 / 1705 / 1706</td>
</tr>

<tr>
<td align="left">中国联通</td>
<td align="left">167 / 1704 / 1707 / 1708 / 1709 / 171</td>
</tr>

<tr>
<td align="left">中国电信</td>
<td align="left">1700 / 1701 / 1702</td>
</tr>
</tbody>
</table>

<h4 id="物联网数据卡-1">物联网数据卡</h4>

<ul>
<li>支持数据流量</li>
<li>号码长度 13 位</li>
</ul>

<table>
<thead>
<tr>
<th align="left">运营商[1]</th>
<th align="left">号段</th>
</tr>
</thead>

<tbody>
<tr>
<td align="left">中国移动</td>
<td align="left">1440X / 148XX</td>
</tr>

<tr>
<td align="left">中国联通</td>
<td align="left">146XX</td>
</tr>

<tr>
<td align="left">中国电信</td>
<td align="left">1410X</td>
</tr>
</tbody>
</table>

<h4 id="上网卡-1">上网卡</h4>

<ul>
<li>支持语音通话（部分） / 短信 / 数据流量</li>
<li>号码长度 11 位</li>
</ul>

<table>
<thead>
<tr>
<th align="left">运营商[1]</th>
<th align="left">号段</th>
<th align="left">语音通话[2]</th>
</tr>
</thead>

<tbody>
<tr>
<td align="left">中国移动</td>
<td align="left">147</td>
<td align="left">支持</td>
</tr>

<tr>
<td align="left">中国联通</td>
<td align="left">145</td>
<td align="left">不支持</td>
</tr>

<tr>
<td align="left">中国电信</td>
<td align="left">149</td>
<td align="left">支持</td>
</tr>
</tbody>
</table>

<p>根据工信部相关文件，145 / 147 / 149 号段允许提供语音通话功能，运营商可以根据用户需要自主决定是否提供语音通话功能。目前 147 / 149 号段已经有支持语音通话的号码卡放出。</p>

    </div>

    
    
<div class="post-copyright">
  <p class="copyright-item">
    <span class="item-title">文章作者</span>
    <span class="item-content">晨光</span>
  </p>
  <p class="copyright-item">
    <span class="item-title">上次更新</span>
    <span class="item-content">2019-09-01</span>
  </p>
  
  <p class="copyright-item">
    <span class="item-title">许可协议</span>
    <span class="item-content"><a rel="license noopener" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank">CC BY-NC-ND 4.0</a></span>
  </p>
</div>


    
    
<div class="post-reward">
  <input type="checkbox" name="reward" id="reward" hidden />
  <label class="reward-button" for="reward">赞赏支持</label>
  <div class="qr-code">
    
    
      <label class="qr-code-image" for="reward">
        <img class="image" src="/images/reward/wechat.jpg">
        <span>微信打赏</span>
      </label>
    
      <label class="qr-code-image" for="reward">
        <img class="image" src="/images/reward/alipay.jpg">
        <span>支付宝打赏</span>
      </label>
  </div>
</div>

    <footer class="post-footer">
      <div class="post-tags">
          <a href="https://lichenguang.net/tags/%E6%89%8B%E6%9C%BA%E5%8F%B7/">手机号</a>
          
        </div>

      
      <nav class="post-nav">
        
          <a class="prev" href="/post/php%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%8F%8D%E7%88%AC%E8%99%AB%E4%BB%A3%E7%A0%81/">
            
            <i class="iconfont">
              <svg  class="icon" viewBox="0 0 1024 1024" version="1.1"
  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
  width="18" height="18">
  <path d="M691.908486 949.511495l75.369571-89.491197c10.963703-12.998035 10.285251-32.864502-1.499144-44.378743L479.499795 515.267417 757.434875 204.940602c11.338233-12.190647 11.035334-32.285311-0.638543-44.850487l-80.46666-86.564541c-11.680017-12.583596-30.356378-12.893658-41.662889-0.716314L257.233596 494.235404c-11.332093 12.183484-11.041474 32.266891 0.657986 44.844348l80.46666 86.564541c1.772366 1.910513 3.706415 3.533476 5.750981 4.877077l306.620399 321.703933C662.505829 963.726242 680.945807 962.528973 691.908486 949.511495z"></path>
</svg>

            </i>
            <span class="prev-text nav-default">PHP服务器反爬虫代码</span>
            <span class="prev-text nav-mobile">上一篇</span>
          </a>
        
          <a class="next" href="/post/%E5%88%A4%E6%96%AD%E6%B5%8F%E8%A7%88%E5%99%A8%E7%B1%BB%E5%9E%8B/">
            <span class="next-text nav-default">判断浏览器类型</span>
            <span class="prev-text nav-mobile">下一篇</span>
            
            <i class="iconfont">
              <svg class="icon" viewBox="0 0 1024 1024" version="1.1"
  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
  width="18" height="18">
  <path d="M332.091514 74.487481l-75.369571 89.491197c-10.963703 12.998035-10.285251 32.864502 1.499144 44.378743l286.278095 300.375162L266.565125 819.058374c-11.338233 12.190647-11.035334 32.285311 0.638543 44.850487l80.46666 86.564541c11.680017 12.583596 30.356378 12.893658 41.662889 0.716314l377.434212-421.426145c11.332093-12.183484 11.041474-32.266891-0.657986-44.844348l-80.46666-86.564541c-1.772366-1.910513-3.706415-3.533476-5.750981-4.877077L373.270379 71.774697C361.493148 60.273758 343.054193 61.470003 332.091514 74.487481z"></path>
</svg>

            </i>
          </a>
      </nav>
    </footer>
  </article>

  
  
  
  

  
  

  

  
  

  

  

  

    <div id="lv-container" class="disqus-comment" data-id="city" data-uid="MTAyMC80NTQ1OC8yMTk3MA==">
    <script type="text/javascript">
      (function(d, s) {
        var j, e = d.getElementsByTagName(s)[0];
        if (typeof LivereTower === 'function') { return; }
        j = d.createElement(s);
        j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
        j.async = true;
        e.parentNode.insertBefore(j, e);
      })(document, 'script');
    </script>
    <noscript>
      Please enable JavaScript to view the
      <a href="https://www.livere.com">comments powered by LiveRe.</a>
    </noscript>
   </div>

        </div>
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="icon-links">
  
  
    <a href="mailto:hollowcg@foxmail.com" rel="me noopener" class="iconfont"
      title="email" >
      <svg class="icon" viewBox="0 0 1451 1024" version="1.1"
  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
  width="36" height="36">
  <path d="M664.781909 681.472759 0 97.881301C0 3.997201 71.046997 0 71.046997 0L474.477909 0 961.649408 0 1361.641813 0C1361.641813 0 1432.688811 3.997201 1432.688811 97.881301L771.345323 681.472759C771.345323 681.472759 764.482731 685.154773 753.594283 688.65053L753.594283 688.664858C741.602731 693.493018 729.424896 695.068979 718.077952 694.839748 706.731093 695.068979 694.553173 693.493018 682.561621 688.664858L682.561621 688.65053C671.644501 685.140446 664.781909 681.472759 664.781909 681.472759L664.781909 681.472759ZM718.063616 811.603883C693.779541 811.016482 658.879232 802.205449 619.10784 767.734955 542.989056 701.759633 0 212.052267 0 212.052267L0 942.809523C0 942.809523 0 1024 83.726336 1024L682.532949 1024 753.579947 1024 1348.948139 1024C1432.688811 1024 1432.688811 942.809523 1432.688811 942.809523L1432.688811 212.052267C1432.688811 212.052267 893.138176 701.759633 817.019477 767.734955 777.248 802.205449 742.347691 811.03081 718.063616 811.603883L718.063616 811.603883Z"></path>
</svg>

    </a>


<a href="https://lichenguang.net/index.xml" rel="noopener alternate" type="application/rss&#43;xml"
    class="iconfont" title="rss" target="_blank">
    <svg class="icon" viewBox="0 0 1024 1024" version="1.1"
  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
  width="30" height="30">
  <path d="M819.157333 1024C819.157333 574.592 449.408 204.8 0 204.8V0c561.706667 0 1024 462.293333 1024 1024h-204.842667zM140.416 743.04a140.8 140.8 0 0 1 140.501333 140.586667A140.928 140.928 0 0 1 140.074667 1024C62.72 1024 0 961.109333 0 883.626667s62.933333-140.544 140.416-140.586667zM678.784 1024h-199.04c0-263.210667-216.533333-479.786667-479.744-479.786667V345.173333c372.352 0 678.784 306.517333 678.784 678.826667z"></path>
</svg>

  </a>
   
</div>

<div class="copyright">
  <span class="power-by">
    感谢 <a class="hexo-link" href="https://gohugo.io">Hugo</a>
  </span>
  <span class="division">|</span>
  <span class="theme-info">
    主题 - <a class="theme-link" href="https://github.com/xianmin/hugo-theme-jane">Jane</a>
  </span>

  <span class="copyright-year">
    &copy;
    2019
    <span class="heart">
      
      <i class="iconfont">
        <svg class="icon" viewBox="0 0 1025 1024" version="1.1"
  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
  width="14" height="14">
  <path d="M1000.1 247.9c-15.5-37.3-37.6-70.6-65.7-98.9-54.4-54.8-125.8-85-201-85-85.7 0-166 39-221.4 107.4C456.6 103 376.3 64 290.6 64c-75.1 0-146.5 30.4-201.1 85.6-28.2 28.5-50.4 61.9-65.8 99.3-16 38.8-24 79.9-23.6 122.2 0.7 91.7 40.1 177.2 108.1 234.8 3.1 2.6 6 5.1 8.9 7.8 14.9 13.4 58 52.8 112.6 102.7 93.5 85.5 209.9 191.9 257.5 234.2 7 6.1 15.8 9.5 24.9 9.5 9.2 0 18.1-3.4 24.9-9.5 34.5-30.7 105.8-95.9 181.4-165 74.2-67.8 150.9-138 195.8-178.2 69.5-57.9 109.6-144.4 109.9-237.3 0.1-42.5-8-83.6-24-122.2z"
   fill="#8a8a8a"></path>
</svg>

      </i>
    </span><span class="author">
        晨光
        
      </span></span>

  
  

  
</div>


<div style="display: none;">
  <script type="text/javascript" src="https://s23.cnzz.com/z_stat.php?id=1277834778&web_id=1277834778"></script>
</div>

    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont">
        
        <svg class="icon" viewBox="0 0 1024 1024" version="1.1"
  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
  width="35" height="35">
  <path d="M510.866688 227.694839 95.449397 629.218702l235.761562 0-2.057869 328.796468 362.40389 0L691.55698 628.188232l241.942331-3.089361L510.866688 227.694839zM63.840492 63.962777l894.052392 0 0 131.813095L63.840492 195.775872 63.840492 63.962777 63.840492 63.962777zM63.840492 63.962777"></path>
</svg>

      </i>
    </div>
  </div>
  
<script type="text/javascript" src="/lib/jquery/jquery-3.2.1.min.js"></script>
  <script type="text/javascript" src="/lib/slideout/slideout-1.0.1.min.js"></script>




<script type="text/javascript" src="/js/main.dee43230127a73d039a734510fa896c89c3c7ce0cf0be0c7a7433f8fd69b76dc.js" integrity="sha256-3uQyMBJ6c9A5pzRRD6iWyJw8fODPC&#43;DHp0M/j9abdtw=" crossorigin="anonymous"></script>






  
    <script type="text/javascript" src="/js/load-photoswipe.js"></script>
    <script type="text/javascript" src="/lib/photoswipe/photoswipe.min.js"></script>
    <script type="text/javascript" src="/lib/photoswipe/photoswipe-ui-default.min.js"></script>
  















</body>
</html>
